import request1 from "@/utils/request1";
import request2 from "@/utils/request2";

// 礼包订单列表（胡锅锅）
export function orderGiftList(query) {
    return request1({
        url: "admin/retail/order/giftList",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 礼包订单发货（胡季鑫）
export function giftDeliverGoods(query) {
    return request1({
        url: "admin/retail/order/giftDeliverGoods",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 项目/拼团订单列表（胡锅锅）
export function projectList(query) {
    return request1({
        url: "admin/retail/order/projectList",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 提成明细（胡锅锅）
export function incomeTrans(query) {
    return request1({
        url: "admin/retail/order/incomeTrans",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 大区列表（汪攀）
export function region_index(query) {
    return request1({
        url: "/admin/retail/region_index",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 选择省份|城市（汪攀）
export function region_select(query) {
    return request1({
        url: "/admin/retail/region_select",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 大区|省份|城市详情（汪攀）
export function region_show(query) {
    return request1({
        url: "/admin/retail/region_show",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 保存大区|省份|城市（汪攀）
export function region_save(query) {
    return request1({
        url: "/admin/retail/region_save",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 机构管理列表（汪攀）
export function org_index(query) {
    return request1({
        url: "/admin/retail/org_index",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 机构上下架（汪攀）
export function org_onsale(query) {
    return request1({
        url: "/admin/retail/org_onsale",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 城市合伙人--列表
export function city_partner(query) {
    return request1({
        url: "/admin/retail/city_partner",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}
// 城市合伙人--关联机构（张潇
export function hospital(query) {
    return request1({
        url: "/admin/retail/city_partner/hospital",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}
// 城市合伙人--冻结，解冻（张潇）
export function status(query) {
    return request1({
        url: "/admin/retail/city_partner/status",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}
// 发起人管理列表（汪攀）
export function promoter_index(query) {
    return request1({
        url: "/admin/retail/promoter_index",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 查看签约城市合伙人（汪攀）
export function partner_detail(query) {
    return request1({
        url: "/admin/retail/partner_detail",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 合伙人订单业绩 （张潇）
export function partner_order_index(query) {
    return request1({
        url: "/admin/retail/partner_order_index",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}
//地区列表
export function province(query) {
    return request1({
        url: "/admin/retail/province",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}
//机构列表
export function Mechanism(query) {
    return request1({
        url: "/admin/retail/hospital",
        // method: 'post',
        // data: query
        method: "get",
        params: query
    });
}

//项目/拼团订单导出
export function orderProjectExport(query) {
    return request1({
        url: "/admin/retail/order_project_export",
        method: "get",
        params: query,
        responseType: "blob"
    });
}

//礼包订单导出
export function orderGiftExport(query) {
    return request1({
        url: "/admin/retail/order_gift_export",
        method: "get",
        params: query,
        responseType: "blob"
    });
}

// 项目/商品 退款申请列表
export function refundOrder(query) {
    return request1({
        url: "/refund_order",
        method: "post",
        data: query
    });
}

///refund_order/store
export function refundCheck(query) {
    return request1({
        url: "/refund_order/store",
        method: "post",
        data: query
    });
}
//礼包订单 - 导入物流信息
export function giftLogisticsImport(query) {
    return request1({
        url: "/admin/retail/order/giftLogisticsImport",
        method: "post",
        data: query
    });
}

//发起人账号管理 - 列表
export function partnerList(query) {
    return request1({
        url: "/admin/retail/users/partnerList",
        method: "post",
        data: query
            // method: 'get',
            // params: query
    });
}
// 发起人/合伙人新增
export function promoterAdd(query) {
    return request1({
        url: "admin/retail/promoter_add",
        method: "post",
        data: query
    });
}
// 发起人/合伙人修改
export function promoterUpdate(query) {
    return request1({
        url: "admin/retail/promoter_update",
        method: "post",
        data: query
    });
}
// 发起人签约信息下拉数据

export function promoterCreate(query) {
    return request1({
        url: "admin/retail/partner/promoter_create",
        method: "post",
        data: query
    });
}
// 发起人详情
export function promoterShow(query) {
    return request1({
        url: "admin/retail/partner/promoter_show",
        method: "post",
        data: query
    });
}

// 合伙人城市/医院信息下拉数据
export function partnerCreate(query) {
    return request1({
        url: "admin/retail/partner/create",
        method: "post",
        data: query
    });
}
// 根据发起人手机号查询信息
export function getPromoter(query) {
    return request1({
        url: "admin/retail/partner/get_promoter",
        method: "post",
        data: query
    });
}
// 合伙人添加
export function addParner(query) {
    return request1({
        url: "admin/retail/partner/store",
        method: "post",
        data: query
    });
}
// 合伙人详情
export function parnerDetail(query) {
    return request1({
        url: "admin/retail/partner/show",
        method: "post",
        data: query
    });
}
// 合伙人修改
export function parnerUpdate(query) {
    return request1({
        url: "admin/retail/partner/update",
        method: "post",
        data: query
    });
}
// 根据城市获取医院
export function getHospital(query) {
    return request1({
        url: "admin/retail/partner/get_hospital",
        method: "post",
        data: query
    });
}

//获取机构银行卡列表
export function getOrgBankCardList(query) {
    return request2({
        url: "/admin/bank/card-list",
        method: "get",
        params: query
    });
}
// 机构银行卡审核
export function cardApply(query) {
    return request2({
        url: "/admin/bank/card-apply",
        method: "post",
        data: query
    });
}

//机构充值列表
export function rechargeList(query) {
    return request2({
        url: "/admin/hospital/recharge/all",
        method: "post",
        data: query
    });
}

//机构充值审核
export function rechargeCheck(query) {
    return request2({
        url: "/admin/hospital/recharge/check",
        method: "post",
        data: query
    });
}

//机构充值详情
export function rechargeShow(query) {
    return request2({
        url: "/admin/hospital/recharge/show",
        method: "post",
        data: query
    });
}

//机构充值导出
export function rechargeDownload(query) {
    return request2({
        url: "/admin/hospital/recharge/export",
        method: "get",
        params: query,
        responseType: "blob"
    });
}